package com.pu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pu.dto.EmployeeDTO;
import com.pu.dto.EmployeeLoginDTO;
import com.pu.dto.EmployeePageQueryDTO;
import com.pu.dto.PasswordEditDTO;
import com.pu.entity.Employee;
import com.pu.result.PageResult;

/**
 * @Author: Yusc
 * @Date: 2023/10/22 17:10
 * @Version:
 * @Description:
 **/
public interface EmployeeService extends IService<Employee> {
    /**
     * @param employeeLoginDTO
     * @auther: Yusc
     * @date: 2023/10/22 17:11
     * @Description: 员工登录
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * @auther: Yusc
     * @date: 2023/10/25 16:04
     * @Description: 新增员工
     */
    void save(EmployeeDTO employeeDTO);

    /**
     * @auther: Yusc
     * @date: 2023/10/25 17:18
     * @Description: 员工分页查询
     */
    PageResult pageQuery(EmployeePageQueryDTO employeePageQueryDTO);


    /**
     * @param status
     * @param id
     * @auther: Yusc
     * @date: 2023/10/25 18:39
     * @Description: 启用禁用员工账号
     */
    void startOrStop(Integer status, Long id);

    /**
     * @param employeeDTO
     * @auther: Yusc
     * @date 2023/10/26 11:48
     * @Description 编辑员工信息
     */
    void update(EmployeeDTO employeeDTO);

    /**
     * @auther: Yusc
     * @date 2023/11/5 18:02
     * @Description 修改密码
     */
    void editPassword(PasswordEditDTO passwordEditDTO);
}
